/**   
 * @Title: BaseController.java
 * @Package com.eicky.wl.controller 
 * @Description: 接口基础类 
 * @author YiShan   
 * @date 2018年5月21日 下午5:45:54 
 * @version V1.0   
 */
package com.tqhh.meimei.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.ui.ModelMap;



public class BaseController {
	protected Logger logger = LoggerFactory.getLogger(this.getClass());

	public ModelMap resultMapper(Object resultValue) {
		ModelMap modelMap = new ModelMap();
		modelMap.addAttribute("success", true);
		modelMap.addAttribute("result", resultValue);
		modelMap.addAttribute("message", "OK");
        return modelMap;
    }
}
